
 Program CRUtsServer_v24 PJK-CU 10/2018


 This program serves the gridded 0.5x0.5 degree 
 LAND AREA ONLY CRU TS4.01 data sets 
 put together by the Climatic Research Unit, 
 University of East Anglia, U.K, July 2008. 

 Last Update - 10/2018 -pjk:

 CRU TS_4.01 RAW data file list:

            cru_ts_4.01.1901.2016.tmn.dat
            cru_ts_4.01.1901.2016.pet.dat
            cru_ts_4.01.1901.2016.tmx.dat
            cru_ts_4.01.1901.2016.wet.dat
            cru_ts_4.01.1901.2016.pre.dat
            cru_ts_4.01.1901.2016.cld.dat
            cru_ts_4.01.1901.2016.vap.dat
            cru_ts_4.01.1901.2016.tmp.dat
            cru_ts_4.01.1901.2016.dtr.dat
            cru_ts_4.01.1901.2016.frs.dat

  Hit RETURN to CONTINUE


 The original uncompressed TS4.01 files from CRU are quite large (2.71GB).
 Therefore, to use this server program you must first reduce the original
 file size to 1.7GB by using the program CRUcut provided with this
 distribution. CRUcut simply removes the white space (blanks) from the raw
 TS3.1 files and in so doing reduces their size by 1GB.

 The required input for program CRUcut is a simple list file of all the
 original decompressed CRU data file names one name/line, (as shown above). 
 Save this list in a text file then launch program CRUcut and enter the 
 newly created list file name.  CRUcut will then create a condensed copy of 
 of each original file with a ".new" extension appended to the name:
 (e.g., cru_ts4.01.1901.2018.vap.dat > cru_ts_3_10.1901.2018.vap.dat.new
 This proceedure takes time depending on the number of files being 
 reformatted in a single run of the program.

 This program expects to find one or all of the following file names in the  
 current program directory in order to continue.

            cru_ts4.01.1901.2016.tmn.dat.new
            cru_ts4.01.1901.2016.pet.dat.new
            cru_ts4.01.1901.2016.tmx.dat.new
            cru_ts4.01.1901.2016.wet.dat.new
            cru_ts4.01.1901.2016.pre.dat.new
            cru_ts4.01.1901.2016.cld.dat.new
            cru_ts4.01.1901.2016.vap.dat.new
            cru_ts4.01.1901.2016.tmp.dat.new
            cru_ts4.01.1901.2016.dtr.dat.new
            cru_ts4.01.1901.2016.frs.dat.new


 Good Luck.
 pjk-Stockholm, 2011

  Hit RETURN to CONTINUE


    Select the Variable you want to extract:


     Variable Type            Name    Units     Length
  [1] Precipitation             pre       mm      1901-2016
  [2] Mean temperature          tmp     degC*10   1901-2016
  [3] Diurnal Temp. Range       dtr     degC*10   1901-2016
  [4] Min.Temperature           tmn     degC*10   1901-2016
  [5] Max.Temperature           tmx     degC*10   1901-2016
  [6] Vapour pressure           vap     hPa *10   1901-2016
  [7] PET                       pet               1901-2016
  [8] cloud cover               cld      %*10     1901-2016
  [9] frost day frequency*100   frs    days*100   1901-2016
 [10] WET                       wet               1901-2016
 [11] GLOBAL CRUts.4.03 based  scPDSI             1901-2018
  [0] Exit Program

 Enter a value from 0 to 11 ==> 11

 The proper citation for these data is:
 van der Schrier G, Barichivich J, Briffa KR and Jones PD (2013) A scPDSI-based
 global data set of dry and wet spells for 1901-2009. J. Geophys. Res. Atmos.
 118, 4025-4048 (10.1002/jgrd.50355). 
  
 and
  
 Osborn TJ, Barichivich J, Harris I, van der Schrier G and Jones PD (2017)
 Monitoring global drought using the self-calibrating Palmer Drought Severity
 Index [in "State of the Climate in 2016"]. Bulletin of the American
 Meteorological Society 98, S32-S33 (doi:10.1175/2017BAMSStateoftheClimate.1).
  Hit RETURN to continue


    Select the Geographical Range of data to extract

  This data set is spatially shaped like a rectangle where
  the top left corner is defined by the coordinates

  -180.0W Lon./90.0N Lat. and the bottom right coordinates are
  180.0E Lon./-90.0S Lat.  (see diagram below)

   -180.0/90.0                                      180.0/90.0
         :------------------------------------------:
         :                                          :
         :                                          :
         :           Our Beautiful Planet           :
         :                                          :
         :                                          :
         :                                          :
         :                                          :
         :------------------------------------------:
   -180.0/-90.0                                     180.0/-90.0

  Enter the range of Latitude and Longitude
  from which you would like to extract your data.

  Enter values as REAL numbers to the nearest 0.5
  degree. EXAMPLE a Latitude entered as -89.75 defines 
  cells bounded on the bottom by -90.0 degrees SOUTH.
  Similarly a longitude entered as 179.75 are the cells 
  bounded to the right by 180.0 degrees EAST).


  All LONGITUDES WEST or [LEFT] of Greenwich  
  are NEGATIVE and EAST or [RIGHT] of Greenwich  
  are POSITIVE

  All LATITUDES SOUTH or [BELOW] the Equator are
  NEGATIVE and NORTH latitudes, [ABOVE] the equator, are
  POSITIVE.

  Each grid cell value is the observation for that  
  cells mid-point. Example: for the cell 90.0 Lat. -180.0
  Lon. The actual grid point value given is centered 
  over (89.75,-179.75).

  HIT RETURN to continue

        Enter Max Latitude  [TOP]   ==> -30.
        Enter Min Latitude  [BOTTOM]==> -31.
        Enter Max Longitude [RIGHT] ==> 120.
        Enter Min Longitude [LEFT]  ==> 119.

 Area defined is :

     Lon.    Lat                                     Lon.     Lat.
   119.00/  -30.00:------------------------------:  120.00/  -30.00
                  :                              :
                  :                              :
                  :                              :
                  :        Your Selection        :
                  :                              :
                  :                              :
                  :                              :
   119.00/  -31.00:------------------------------:  120.00/  -31.00
     Lon.    Lat                                     Lon.     Lat.

 Is this ok? [T]rue or [F]alse ==> t

 Define the time span to select data from;
 Valid years are 1901-2018

        Enter the First Year Of Data.
        FYOD ==> 1901

        Enter the Last Year Of Data.
        LYOD ==> 2018

 Values Entered are:

 yrmin=  1901 yrmax=  2018

 Is this ok? [T]rue or [F]alse ==> t

 There are theoretically      8 grid cells within your
 search region, this includes cells over oceans for which 
 data are not available. You can choose now to reduce the number 
 of grid cells saved by entering here an integer between the
 values of 2 and    2

 For example: Entering a value of 2 would reduce 
 the number of cells saved to roughtly        2
 or  25.000%

 Enter [1] to save all      8 grid cells.
 Enter a value greater than 1 to save less ==> 1
 The number of cells saved will be roughtly        8
 or 100.000%

 IS this ok? [y]es or [n]o ==> y

 OK, You may now (finally) opt to test the within grid
 variance for equality. To do this you must enter a year
 at which you feel the variance in the grid values may change.

 Perform Ftest of Vairance? [T]rue or [F]alse ==> f

  Saving Cell data : 1901 - 2018
     #    longitude latitude   dattype       title
       1   119.250   -29.750   scPDSI.dat.     scPDSI                     
       2   119.750   -29.750   scPDSI.dat.     scPDSI                     
       3   119.250   -30.250   scPDSI.dat.     scPDSI                     
       4   119.750   -30.250   scPDSI.dat.     scPDSI                     
       5   119.250   -30.750   scPDSI.dat.     scPDSI                     
       6   119.750   -30.750   scPDSI.dat.     scPDSI                     
       7   119.250   -31.250   scPDSI.dat.     scPDSI                     
       8   119.750   -31.250   scPDSI.dat.     scPDSI                     


 PROGRAM TERMINATING NORMALLY
          8 Grids Defined
          8 Grids Selected and Saved
 Output is in file scPDSI.cru_ts4.03_1901.2018.dat.new.TSF                          

 Perform another search?
 [t]rue [f]alse ==> f
Press RETURN to quit the program.
